<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>删除一个数据库 [已废弃]</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongoclient.construct.html">MongoClient::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongoclient.get.html">MongoClient::__get</a></div>
 <div class="up"><a href="class.mongoclient.html">MongoClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongoclient.dropdb" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoClient::dropDB</h1>
  <p class="verinfo">(PECL mongoclient &gt;=0.9.0)</p><p class="refpurpose"><span class="refname">MongoClient::dropDB</span> &mdash; <span class="dc-title">删除一个数据库 [已废弃]</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongoclient.dropdb-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>MongoClient::dropDB</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$db</code></span>
   )</div>


  <div class="warning"><strong class="warning">Warning</strong>
   <h1 class="title">已废弃</h1>
   <p class="para">
    请使用 <span class="function"><a href="mongodb.drop.html" class="function">MongoDB::drop()</a></span> 作为替代。
   </p>
  </div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongoclient.dropdb-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">db</code></em>
     </dt>

     <dd>

      <p class="para">
       要函数的数据库。可以是一个 MongoDB对象，或者是数据库名。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongoclient.dropdb-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回数据库的回应。
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongoclient.construct.html">MongoClient::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongoclient.get.html">MongoClient::__get</a></div>
 <div class="up"><a href="class.mongoclient.html">MongoClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
